package plotter;

import javax.swing.*;

import java.awt.BorderLayout;
import java.awt.event.*;

class AboutDialog extends JDialog
{
	public AboutDialog(JFrame parent)
	{
		super(parent, "About", true);
		
		
		
		add(new JLabel("<html><h1>SurfPlot</h1>Author: Narendra J. Mondal<hr>E-Mail: surfplot@gmail.com</html>", JLabel.CENTER));
		
		JButton ok = new JButton("OK");
		ok.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				setVisible(false);
			}
		});
		
		JPanel p = new JPanel();
		p.add(ok);
		
		add(p, BorderLayout.SOUTH);
		
		setSize(300, 200);
		setResizable(false);
	}

}
